package egg_drop;

import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

public class ObPoo {    
   
    public int x;
    
    public int y;
    
    private int speed;
    
    private BufferedImage PooImg;       
    
    public ObPoo(int x, int y, int speed, BufferedImage PooImg)
    {
        this.x = x;
        this.y = y;
        
        this.speed = speed;
        
        this.PooImg = PooImg;        
    }
    
    public void Update()
    {
        y += speed;
    }
    
    public void Draw(Graphics2D g2d)
    {
        g2d.drawImage(PooImg, x, y, null);
    }
}
